home *** CD-ROM | disk | FTP | other *** search
- // WinHacker Script
- // Copyright (c) 1996 Wedge Software
- //
- // Example INI script
- //
- // For best testing results, put a "file.ini" file (blank)
- // into the c:\ directory.
- //
- // The file will be created if not there (using the direct method,
- // putting "c:\" in the location, and "file.ini" as the file.
- // The user can create it also by putting "file.ini" in the Open
- // dialog box (in the file space), even though it is not there.
-
- [Main]
- Desc = Full INI file example
- // Ask = Click on NO, this is not meant to be run!
- // StartMessage = This is a start message.
- // ExitMessage = This is a exit message.
-
- [Ini]
- Procs = 5
-
- // Create the file if not there
-
- [IniProc#1]
- // Ask = Run IniProc#1?
- Location = c:\
- File = file.ini
- Section = Junk Section
- Item = Junk
- Action = Write
- Value = This was written just to create the file...
-
-
- // Browse for the file.ini
- //
-
- [IniProc#2]
- // Ask = Run IniProc#2?
- Location = (Browse)
- File = file.ini
- Section = General
- Item = INIProc#1 String
- Action = Write
- Value = This was written by INIProc#1
-
- // Browse and ask for value
- //
-
- [IniProc#3]
- // Ask = Run IniProc#3?
- Location = (Browse)
- File = file.ini
- Section = General
- Item = INIProc#3
- Action = Write
- Value = (dialog)
- Value.dialog.text = This is a test of a INI file dialog, write a string
- Value.dialog.text2 = or intger in the space below.
- Value.dialog.default = INIProc#3 wrote this!
-
- // Normal (Access the file directly, don't ask where it is)
- //
- // NOTE: file.ini will be created / opened in the Windows dir if not there
- //
-
- [IniProc#4]
- Ask = Create value to be deleted later? (INIProc#4 is the name of the item)
- Location = c:\
- File = file.ini
- Section = General
- Item = INIProc#4
- Action = Write
- Value = INIProc#3 wrote this, it will be deleted
-
-
- // Delete
- //
-
- [IniProc#5]
- Ask = Delete the value?
- Location = c:\
- File = file.ini
- Section = General
- Item = INIProc#4
- Action = Delete
-
-